package org.mte.sak.mail;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class MailAuthenticator extends Authenticator {

	private String username = null;

	private String password = null;


	public MailAuthenticator(String username, String password)  {
		this.username = username;
		this.password = password;
	}

    public PasswordAuthentication getPasswordAuthentication() {
    	return new PasswordAuthentication(username, password);
    }
}
